<%@ page contentType="text/html; charset=UTF-8" language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp" %>

<div id="wrapper">
	<div id="header-wrapper">
		<header>
			<div id="logo">
				<h1>基因改造植物安全管理知識庫</h1>
			</div>
			<div id="menu">				
				<ul>
					<li class="info">
						<span id="CURRENT_USER_FULLNAME" style="color:#494949;">
							<sec:authentication property='principal.users.fullname' />
						</span>
						<span style="font-weight: 300;font-size:12px;color: #696969">您好</span>
						
						<!--  <img src="${appPath }/resource/image/logout.png" border="0"/> -->
					</li>
					<sec:authorize access="hasRole('ROLE_ROOT')">				
						<c:choose>
							<c:when test="${MAINMENU == 1 }">
								<li class="current_page_item">管理者</li>
							</c:when>
							<c:otherwise>
								<li><a href="${appPath }/admin/page/user/add.htm">管理者</a></li>
							</c:otherwise>
						</c:choose>			
					</sec:authorize>
					<sec:authorize access="hasRole('ROLE_KEYR')">
						<c:choose>
							<c:when test="${MAINMENU == 2 }">
								<li class="current_page_item">表單管理</li>
							</c:when>
							<c:otherwise>
								<li><a href="${appPath }/form/page/input.htm">表單管理</a></li>
							</c:otherwise>
						</c:choose>	
					</sec:authorize>	
					
					<sec:authorize access="hasRole('ROLE_KCHR')">
						<c:choose>
							<c:when test="${MAINMENU == 3 }">
								<li class="current_page_item">表單檢核管理</li>
							</c:when>
							<c:otherwise>
								<li><a href="${appPath }/formcheck/page/chklist.htm">表單檢核管理</a></li>
							</c:otherwise>
						</c:choose>	
					</sec:authorize>
									
					<c:choose>
						<c:when test="${MAINMENU == 9}">
							<li class="current_page_item">設定</li>
						</c:when>
						<c:otherwise>
							<li><a href="${appPath }/option/page/private.htm">設定</a></li>
						</c:otherwise>
					</c:choose>
					<li>
						<a href="javascript:void(0);" onclick="showReport();">
							問題回報
						</a>
					</li>
					<li>
						<a href="${appPath}/j_spring_security_logout">
							登出
						</a>
					</li>								 	
				</ul>				
			</div>
		</header>
	</div>
</div>
